
set(PbindexSrcDir ${PacBioBAM_ToolsDir}/pbindex/src)

# create version header
set(PbIndex_VERSION ${PacBioBAM_VERSION})
configure_file(
    ${PbindexSrcDir}/PbIndexVersion.h.in PbIndexVersion.h @ONLY
)

# list source files
set(PBINDEX_SOURCES
    ${ToolsCommonDir}/OptionParser.cpp
    ${PbindexSrcDir}/main.cpp
    ${PbindexSrcDir}/PbIndex.cpp
)

# build pbindex executable
include(PbbamTool)
create_pbbam_tool(
    TARGET  pbindex
    SOURCES ${PBINDEX_SOURCES}
)
